﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo5
{
    // 输入24小时制，输出  0点-5点  -> 凌晨5点xx分,好梦！   6-9点->  早晨7点30分，记得吃早餐哦！  10-12  
    internal class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入小时：");
            var nowTime = Convert.ToInt32(Console.ReadLine());
            //获取系统时间的方法 System.DateTime.Now 
            //var nowTime = System.DateTime.Now.Hour;

            if (nowTime > 24 || nowTime < 0)
                Console.WriteLine("您是火星人吗？时间不存在！");
            else
            {
                if (nowTime == 0 || nowTime == 24)
                    Console.WriteLine("0点整，凌晨时分，是否变身！");
                else if (nowTime > 0 && nowTime < 6)
                    Console.WriteLine("{0}点{1}分{2}秒，半夜时光好梦！", nowTime, System.DateTime.Now.Minute, System.DateTime.Now.Second);
                else if (nowTime > 6 && nowTime < 12)
                    Console.WriteLine("{0}点{1}分{2}秒，上午好，好好学习好好工作，不要摆烂！", nowTime, System.DateTime.Now.Minute, System.DateTime.Now.Second);
                else if (nowTime ==12)
                    Console.WriteLine("12点，中午好，午饭要营养！");
                else if (nowTime > 12 && nowTime < 18)
                    Console.WriteLine("下午{0}点{1}分{2}秒，下午好，好好学习好好工作，不要摆烂！", nowTime-12, System.DateTime.Now.Minute, System.DateTime.Now.Second);
                else
                    Console.WriteLine("晚上{0}点{1}分{2}秒，晚上好，开黑了，但要好好休息！", nowTime-12, System.DateTime.Now.Minute, System.DateTime.Now.Second);
            }
            Console.ReadKey();
        }
    }
}
